export default function topics(topics={
    loading:true,
    data:[]
},action){

    switch (action.type) {
        case 'loading':
            return{
                loading:true,
                data:[]
            }
        case 'loadover':
            return{
                loading:false,
                data:action.data
            }
            default:
                return topics
    }
    
  
}